import request from '@/utils/request'

// 查询中标通知单列表
export function listZcBidNotice(query) {
  return request({
    url: '/sales/ZcBidNotice/list',
    method: 'get',
    params: query
  })
}

// 查询中标通知单详细
export function getZcBidNotice(id) {
  return request({
    url: '/sales/ZcBidNotice/' + id,
    method: 'get'
  })
}

// 查询中标通知单详细
export function toOrder(id) {
  return request({
    url: '/sales/ZcBidNotice/toOrder/' + id,
    method: 'post'
  })
}

// 新增中标通知单
export function addZcBidNotice(data) {
  return request({
    url: '/sales/ZcBidNotice',
    method: 'post',
    data: data
  })
}

// 修改中标通知单
export function updateZcBidNotice(data) {
  return request({
    url: '/sales/ZcBidNotice',
    method: 'put',
    data: data
  })
}

// 删除中标通知单
export function delZcBidNotice(id) {
  return request({
    url: '/sales/ZcBidNotice/' + id,
    method: 'delete'
  })
}
